using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Comteck.Domain.Entities;

namespace Comteck.Entities.Orders {
  /// <summary>
  /// 自提点与标签的关系
  /// </summary>
  [Table("SelfOrgTagRelation")]
  public class SelfOrgTagRelation : Entity<string> {
    /// <summary>
    /// 自提点标签类型
    /// </summary>
    [Key]
    [Required, DatabaseGenerated(DatabaseGeneratedOption.None)]
    public override string Id { get; set; }

    /// <summary>
    /// 自提点id
    /// </summary>
    public int SelfOrgId { get; set; }

    /// <summary>
    /// 自提点标签id
    /// </summary>
    public int TagId { get; set; }
  }
}
